<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.system.vo.LianDong"%>
<%@page import="com.tjsinfo.tjsoa.documentationflow.xingzhengfawen.vo.TXingzhengfawenNeirong"%>
<%@page import="com.tjsinfo.tjsoa.documentationflow.xingzhengfawen.vo.SubTypeInfo"%>
<%@page import="com.tjsinfo.tjsoa.common.ToolKit"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String rodomerstr = (String)request.getAttribute("rodomerstr");
String state = (String)request.getAttribute("state");
List zhusongList = (List)request.getAttribute("zhusong");
List subTypeList = (List)request.getAttribute("subtypelist");
request.setAttribute("xingzhengfawenNeirong",new TXingzhengfawenNeirong());

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  	<meta http-equiv="x-ua-compatible" content="ie=7" />
    <base href="<%=basePath%>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>拟稿</title>

<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" />  
<link href="<%=basePath%>style/shoufatable.css" rel="stylesheet" type="text/css" />  
	<link href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/source/locale/ext-lang-zh_CN.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
    <script type="text/javascript" src="<%=basePath %>js/common/global/validator.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxfileupload.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxFileZx.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxfileuploadZW.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxFileZxZW.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxfileuploadBZ.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxFileZxBZ.js"></script>
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/init.js"></script>
 	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/extension/window/window.js"></script> 
 	<script type="text/javascript" src="<%=basePath %>js/My97DatePicker/WdatePicker.js"></script>
 	<script type="text/javascript" src="<%=basePath %>js/common/system/selectbumenshenheren.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/system/selectusertreecheckliandong.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/system/selectusercheckbyduty.js"></script>	
	<script type="text/javascript" src="<%=basePath %>js/common/system/selectusertreecheck.js"></script>	
	<script type="text/javascript" src="<%=basePath %>js/common/system/selecthuiqianlist.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/system/selectqianfalist.js"></script>
      <script type="text/javascript">
		function init(){
	 		var url = "<%=basePath%>documentationflow/xingzhengfawen/opendoc.jsp?docname=<%=rodomerstr+".doc"%>&WorkMode=2";
			with(document.all)
			initselectusertreecheck();
			initselectusertreecheckliandong("update");
			initselectbumenshenheren();
		}
		
		$(function(){
			$("#gwlz_title a").get(0).href="javascript:change(1)";
			$("#gwlz_title a").get(1).href="javascript:change(2)";
			$("#gwlz_title a").get(2).href="javascript:change(3)";
			$("#gwlz_title a").get(3).href="javascript:change(4)";
			$("#gwlz_title a").get(4).href="javascript:change(5)";
		});
		
		function change(start){
			if(start == 1){
				$("#li1").addClass("over");
				$("#li2").removeClass();
				$("#li3").removeClass();
				$("#li4").removeClass();
				$("#li5").removeClass();
				$("#span1").show();
				$("#span2").hide();
				$("#span3").hide();
				$("#span4").hide();	
				$("#span5").hide();	
			}
			else if(start == 2)
			{
				$("#li2").addClass("over");
				$("#li1").removeClass();
				$("#li3").removeClass();
				$("#li4").removeClass();
				$("#li5").removeClass();
				$("#span2").show();
				$("#span1").hide();
				$("#span3").hide();
				$("#span4").hide();
				$("#span5").hide();	
			}
			else if(start == 3)
			{
				$("#li3").addClass("over");
				$("#li1").removeClass();
				$("#li2").removeClass();
				$("#li4").removeClass();
				$("#li5").removeClass();
				$("#span3").show();
				$("#span1").hide();
				$("#span2").hide();
				$("#span4").hide();	
				$("#span5").hide();	
			}
			else if(start == 4)
			{
				$("#li4").addClass("over");
				$("#li1").removeClass();
				$("#li2").removeClass();
				$("#li3").removeClass();
				$("#li5").removeClass();
				$("#span4").show();
				var fuJian = $("#uploadList").text().replace(new   RegExp("删除",   "g"),   ",");
				var zhengWen = $("#uploadListzw").text().replace(new   RegExp("删除",   "g"),   ",");
				var beiZhu = $("#uploadListbz").text().replace(new   RegExp("删除",   "g"),   ",");
				fuJian = fuJian.substring(0,fuJian.length - 1);
				zhengWen = zhengWen.substring(0,zhengWen.length - 1);
				beiZhu = beiZhu.substring(0,beiZhu.length - 1);
				$("input[name=fujian]").val(fuJian);
				$("input[name=zhengwen]").val(zhengWen);
				$("input[name=beizhu]").val(beiZhu);
				$("#span1").hide();
				$("#span2").hide();
				$("#span3").hide();	
				$("#span5").hide();	
			}
			else if(start == 5)
			{
				$("#li5").addClass("over");
				$("#li1").removeClass();
				$("#li2").removeClass();
				$("#li3").removeClass();
				$("#li4").removeClass();
				$("#span5").show();	
				$("#span1").hide();
				$("#span2").hide();
				$("#span3").hide();
				$("#span4").hide();	
			}
			
		}
		function fawenDatecheck(){   
			//alert("sss");
		    var date = document.getElementById("fawenDate").value;
		    var result = date.match(/((^((1[8-9]\d{2})|([2-9]\d{3}))(-)(10|12|0?[13578])(-)(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))(-)(11|0?[469])(-)(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))(-)(0?2)(-)(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)(-)(0?2)(-)(29)$)|(^([3579][26]00)(-)(0?2)(-)(29)$)|(^([1][89][0][48])(-)(0?2)(-)(29)$)|(^([2-9][0-9][0][48])(-)(0?2)(-)(29)$)|(^([1][89][2468][048])(-)(0?2)(-)(29)$)|(^([2-9][0-9][2468][048])(-)(0?2)(-)(29)$)|(^([1][89][13579][26])(-)(0?2)(-)(29)$)|(^([2-9][0-9][13579][26])(-)(0?2)(-)(29)$))/);
		    if(result==null){
		        alert("请输入正确的拟稿日期格式");
		        return false;
		    }      
		}
		function fengfadatecheck(){   
			//alert("sss");
		    var date = document.getElementById("fengfadate").value;
		    var result = date.match(/((^((1[8-9]\d{2})|([2-9]\d{3}))(-)(10|12|0?[13578])(-)(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))(-)(11|0?[469])(-)(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))(-)(0?2)(-)(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)(-)(0?2)(-)(29)$)|(^([3579][26]00)(-)(0?2)(-)(29)$)|(^([1][89][0][48])(-)(0?2)(-)(29)$)|(^([2-9][0-9][0][48])(-)(0?2)(-)(29)$)|(^([1][89][2468][048])(-)(0?2)(-)(29)$)|(^([2-9][0-9][2468][048])(-)(0?2)(-)(29)$)|(^([1][89][13579][26])(-)(0?2)(-)(29)$)|(^([2-9][0-9][13579][26])(-)(0?2)(-)(29)$))/);
		    if(result==null){
		        alert("请输入正确的封发日期格式");
		        return false;
		    }      
		}
		function f_submit(){
			if(istextareanull("#zhaiyao","请填写标题")
				&&isnull("input[name='hegaorenname']","请填写部门领导审核人")
				//&&isnull("input[name='zhusongid']","请选择主送")
				&&isnull("input[name='nigaorenname']","请填写拟稿人")
				&&isnull("input[name='nigaorenunit']","请填写拟稿人单位")
				&&isnull("#haotype","请选择文种")
				&&isnull("#number","文号不能为空")
				&&mustisnumber("#number","文号只能填写数字")
				&&isnull("#fawenDate","拟稿日期不能为空")
				&&isnull("#fengfadate","封发日期不能为空")
				&&isnull("input[name='qianfaidname']","请填写签发人")
				&&isnull("input[name='fuherenname']","请填写核稿人")
				&&isnull("input[name='fuherenoption']","请填写核稿人意见")
				&&(isnull("input[name='zhusongidname']","请选择主送")
				||isnull("input[name='txzhusongidname']","请选择主送"))
				){
				Ext.MessageBox.show({
			           title:'消息',
			           msg: '是否执行此操作?',
			           buttons: Ext.MessageBox.YESNO,
			           fn: function(btn){
			           	  if(btn == 'yes'){
			           	  	msg();
							document.form1.submit();
			           	  }	
			           },
			           icon: Ext.MessageBox.QUESTION
			       });			 		
			}
		}
		
		/*function subtypechange(){
    		var item = $("select[@name=subtype] option[@selected]").attr("value");
    		$.get("tjsinfo/tjsoa/xingzhengfawen/shenpi.do?method=getMaxTypeNumber",{wentypeid:item},function(data){
				var obj =  Ext.decode(data);
	    	$("#number").attr("value",obj.number);
	    	$("#haotype").attr("value",obj.haotype);
		});
    	}*/

		function zhusongchang(){
			if($("select[name=zhusongselect]").val() != 0){
				$("input[name=zhusongname]").val($("select[name=zhusongselect]").find("option:selected").text());
				$.get("<%=basePath %>tjsinfo/tjsoa/system/selectLianDongById.do",{id:$("select[name=zhusongselect]").find("option:selected").val()},function(data){
					$("input[name=zhusongidname]").val(Ext.decode(data).text);
					$("input[name=zhusongid]").val(Ext.decode(data).id);			
				});	
			}else{
				$("input[name=zhusongidname]").val("");
				$("input[name=zhusongid]").val("");	
				$("input[name=zhusongname]").val("");		
			}	
		}
		
		function huiqianren(){
			var _win = selectHuiQianRenGridWin();
			_win.on("tradata",function(data){
				$("input[name=huiqianidname]").attr("value",data.userName);
				$("input[name=huiqianid]").attr("value",data.userId);
				
			});			
		}
		function qianfaren(){
			var _win = selectQianFaGridWin();
			_win.on("tradata",function(data){
				$("input[name=qianfaidname]").attr("value",data.userName);
				$("input[name=qianfaid]").attr("value",data.userId);
				
			});	
		}
	</script>
<!-- 执行上传文件操作的函数 -->
<script type="text/javascript">
var deleteFile;
var alreadyUploadFile='';
var uploadUrl='<%=basePath %>tjsinfo/tjsoa/system/ajaxFileUpload.do?method=uploader';
var deteleFileUrl='<%=basePath %>tjsinfo/tjsoa/system/ajaxFileUpload.do?method=deleted';
var uploadUrlZW='<%=basePath %>tjsinfo/tjsoa/system/ajaxFileUploadZW.do?method=uploader';
var deteleFileUrlZW='<%=basePath %>tjsinfo/tjsoa/system/ajaxFileUploadZW.do?method=deleted';
var uploadUrlBZ='<%=basePath %>tjsinfo/tjsoa/system/ajaxFileUploadBZ.do?method=uploader';
var deteleFileUrlBZ='<%=basePath %>tjsinfo/tjsoa/system/ajaxFileUploadBZ.do?method=deleted';
</script>	
  </head>
  
  <body onload="init()">
  	<form action="<%=basePath %>tjsinfo/tjsoa/xingzhengfawen/shenpi.do?method=qianfanigao" method="post" name="form1">
  	 <div id="files" style="display: none;"></div>
  	 <div id="filesZW" style="display: none;"></div>
  	 <div id="filesBZ" style="display: none;"></div>
   <div id="rightindex" style="height: 97%">
   <div id="tabtj"> 
      <div id="ttt">
        <div id="gwlz_title">
            <ul>
                <li id="li1"><a href="#"><span>发文承办单</span></a></li> 
                <li class="over" id="li2"><a href="#"><span>正文</span></a></li>
                <li id="li3"><a href="#"><span>附件</span></a></li>
                <li id="li4"><a href="#"><span>办理</span></a></li>
                <li id="li5"><a href="#"><span>备注</span></a></li>
            </ul>
         <div style="text-align: right;padding-right: 10px"><a href="javascript:history.go(-1)"><img src="<%=basePath %>images/fanhui111.gif"/></a></div>           
        </div>
        <div style="overflow-y:scroll; height:96%">
        <div class="swcbdtab" style="display: none;" id="span1">     
        	<jsp:include page="./nigaozhi.jsp"></jsp:include>
        </div> 
        <div class="swcbdtab" id="span2">
        	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:80px">
            	<tr>
                	<td align="center">
                    	<table width="764" border="0" cellspacing="0" cellpadding="0">
                      		<tr><td><img src="images/tjfjzw.gif" /></td></tr>
                      		<tr>
                        		<td>
                        			<div class="tjfjcontent">
                                		<table width="90%" height="90%" border="0" cellspacing="0" cellpadding="0" class="researchtab">                                
        									<tr>
                                  				<td>
                                  					<div class="sc_listLong"><ul id="uploadListzw"></ul></div>
                				  					<span><input type="file" UNSELECTABLE="on"  name="uploadFilezw" id="uploadFilezw" size="34" class="textinput" />&nbsp;&nbsp;<a style="cursor: hand" onclick="ajaxFileUploadZW()"><img src="<%=basePath %>images/scicon.gif" /></a></span>
                				  				</td>
                							</tr>  
                                		</table>
                            		</div>
                            	</td>
                      		</tr>
                      		<tr><td><img src="images/tjfj03.gif" /></td></tr>
                    	</table>
                	</td>
              	</tr>
          	</table>
        </div>
        <div class="swcbdtab" id="span3"  style="display: none;">
        	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:80px">
            	<tr>
                	<td align="center">
                    	<table width="764" border="0" cellspacing="0" cellpadding="0">
                      		<tr><td><img src="images/tjfj01.gif" /></td></tr>
                      		<tr>
                        		<td>
                        			<div class="tjfjcontent">
                                		<table width="90%" height="90%" border="0" cellspacing="0" cellpadding="0" class="researchtab">                                
        									<tr>
                                  				<td>
                                  					<div class="sc_listLong"><ul id="uploadList"></ul></div>
                				  					<span><input type="file" UNSELECTABLE="on"  name="uploadFile" id="uploadFile" size="34" class="textinput" />&nbsp;&nbsp;<a style="cursor: hand" onclick="ajaxFileUpload()"><img src="<%=basePath %>images/scicon.gif" /></a></span>
                				  				</td>
                							</tr>  
                                		</table>
                            		</div>
                            	</td>
                      		</tr>
                      		<tr><td><img src="images/tjfj03.gif" /></td></tr>
                    	</table>
                	</td>
              	</tr>
          	</table>	
        </div>
        <div class="swcbdtab" id="span5"  style="display: none;">
        	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:80px">
            	<tr>
                	<td align="center">
                    	<table width="764" border="0" cellspacing="0" cellpadding="0">
                      		<tr><td><img src="images/tjbz.gif" /></td></tr>
                      		<tr>
                        		<td>
                        			<div class="tjfjcontent">
                                		<table width="90%" height="90%" border="0" cellspacing="0" cellpadding="0" class="researchtab">                                
        									<tr>
                                  				<td>
                                  					<div class="sc_listLong"><ul id="uploadListbz"></ul></div>
                				  					<span><input type="file" UNSELECTABLE="on"  name="uploadFilebz" id="uploadFilebz" size="34" class="textinput" />&nbsp;&nbsp;<a style="cursor: hand" onclick="ajaxFileUploadBZ()"><img src="<%=basePath %>images/scicon.gif" /></a></span>
                				  				</td>
                							</tr>  
                                		</table>
                            		</div>
                            	</td>
                      		</tr>
                      		<tr><td><img src="images/tjfj03.gif" /></td></tr>
                    	</table>
                	</td>
              	</tr>
          	</table>	
        </div>
        <div class="swcbdtab"  id="span4" style="display: none;">
        	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:60px">
              	<tr>
                	<td align="center">
                		<table width="650" border="0" cellspacing="0" cellpadding="0">
                 			<tr><td><img src="images/bl11.gif" /></td></tr>
                  			<tr>
                    			<td>
                    				<div class="blcontent">
                    					<h1>以下内容承办单体现</h1>
                    					<table width="98%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                              				<tr>
                                				<th width="20%" >标题</th>
                                				<td  width="65%" align="left">
                                					<textarea cols="50" rows="5" name="zhaiyao" id="zhaiyao"></textarea>                                	
                                				</td>
                                  				<td width="15%"><h2>（必填）</h2></td>
                              				</tr>
                              				<tr>
                                				<th>正文</th>
                                				<td width="65%" align="left">
                                					<input name="zhengwen" type="text" size="80" />
                                				</td>
                                				<td><a href="javascript:change(2)">添加</a></td>
                              				</tr>
                               				<tr>
                                				<th>附件</th>
                                				<td width="65%" align="left">
                                					<input name="fujian" type="text" size="80" />
                                				</td>
                                				<td><a href="javascript:change(3)">添加</a></td>
                              				</tr>
                               				<tr>
                                				<th valign="top">主送单位</th>
                                				<input name="zhusongname" type="text" size="50"  style="display: none;"/>&nbsp;<br/>
                                				<td width="65%" align="left">
                                					
                                					<select name="zhusongselect" onchange="zhusongchang()">
                                						<option value="0" selected="selected">请选择主送</option>
                                		<%
                                		    Iterator iterator =  zhusongList.iterator();
                                			while(iterator.hasNext())
                                			{
                                				LianDong lianDong = (LianDong)iterator.next();
                                		%>
                                						<option value="<%=lianDong.getId()%>"><%=lianDong.getLianDongLable()%></option>	
                                		<% 		
                                			}
                                		%>		
                                					</select></td>
                                 				<td width="15%"><h2>（必填）</h2></td>
                              				</tr>
                              				<tr>
                                				<th width="20%">选择主送</th>
                                				<td width="65%" align="left">
                                  					<h2><input name="zhusongidname" id="zhusongidname" type="text"  readonly="readonly"  size="60" />
                                					（菜单树选择）</h2>
                                				</td>
                                				<td width="15%" align="left">
                                					<h2><a href="javascript:selectusertreecheckliandongwinshow('zhusongid','zhusongidname','node')"><img src="images/yhglren.gif" /></a></h2>
                                				</td>
                              				</tr>
                              				<tr>
                                				<th width="20%"></th>
                                				<td width="80%" align="left" colspan="2">
                                  					<h2><input name="txzhusongidname" id="txzhusongidname" type="text" size="60" />
                                					（自己填写，顿号"、"隔开）</h2>
                                				</td>
                              				</tr>
                              				<tr>
                                				<th>抄送单位</th>
                                				<td width="80%" align="left" colspan="2">
                                					<h2><input name="chaosongname" type="text" size="60" />（顿号"、"隔开）</h2>
                                				</td>
                              				</tr>
                              				<!-- 
                              				<tr>
                                				<th>选择抄送</th>
                                				<td width="65%" align="left">
                                  					<input name="chaosongidname" id="chaosongidname" type="text" readonly="readonly" size="80" />
                                				</td>
                                				<td width="15%" align="left">
                                					<a href="javascript:selectusertreecheckwinshow('chaosongid','chaosongidname','node')"><img src="images/yhglren.gif" /></a>
                                				</td>
                              				</tr>
                              				 -->
                              				<tr>
                                				<th>拟稿人</th>
                                				<td width="65%" align="left" >
                                  					<input  name="nigaorenname" id="nigaorenname" type="text" size="60" />
                                				</td>
                                				<td width="15%" align="left">
                                					<h2>（必填）
                                					<!-- <a href="javascript:selecbumenshenherenwinshow('nigaorenid','nigaorenname','huiqiannode1')"><img src="images/yhglren.gif" /></a> -->
                                					</h2>
                                				</td>
                              				</tr>
                              				<tr>
                                				<th>拟稿人单位</th>
                                				<td width="65%" align="left" >
                                  					<input  name="nigaorenunit" id="nigaorenunit" type="text" size="80"/>
                                				</td>
                                				<td width="15%" align="left">
                                					<h2>（必填）</h2>
                                				</td>
                              				</tr>
                                  			<tr>
                                <th>部门领导审核人</th>
                                <td width="65%" align="left">
                                  <input  name="hegaorenname" id="hegaorenname" type="text" size="60"  />
                                </td>
                                <td width="15%" align="left"><h2>（必填）
                                <!-- <a href="javascript:selecbumenshenherenwinshow('hegaorenid','hegaorenname','huiqiannode2')"><img src="images/yhglren.gif" /></a> -->
                                </h2></td>
                              </tr>
                              <tr>
                                <th>核稿人</th>
                                <td width="65%" align="left">
                                  <input  name="fuherenname" id="fuherenname" type="text" size="60"  />
                                </td>
                                <td width="15%" align="left"><h2>（必填）
                                <!-- <a href="javascript:selecbumenshenherenwinshow('hegaorenid','hegaorenname','huiqiannode2')"><img src="images/yhglren.gif" /></a> -->
                                </h2></td>
                              </tr>
                              <tr>
                                <th>核稿人意见</th>
                                <td width="65%" align="left">
                                  <input  name="fuherenoption" id="fuherenoption" type="text" size="80"  />
                                </td>
                                <td width="15%" align="left"><h2>（必填）
                                <!-- <a href="javascript:selecbumenshenherenwinshow('hegaorenid','hegaorenname','huiqiannode2')"><img src="images/yhglren.gif" /></a> -->
                                </h2></td>
                              </tr>
                              <tr >
                                    <th>分管领导审阅人</th>
                                    <td width="65%" align="left">
                                      <h2><input name="huiqianidname" id="huiqianidname" type="text" size="60" />（顿号"、"隔开）</h2>
                                    </td>
                                    <td  width="15%" align="left">
                                    	<!-- <a href="javascript:huiqianren()"><img src="images/yhglren.gif" /></a>-->
                                    </td>
                                  </tr>
                                <tr>
                                    <th width="20%" >部门会签人</th>
                                    <td width="80%" align="left" colspan="2">
                                      <h2><input name="bumenhuiqianidname" id="bumenhuiqianidname" type="text" size="60" />（顿号"、"隔开）</h2>
                                    </td>
                                    <!-- <td  width="15%" align="left">
                                    	<a href="javascript:selectusercheckwinshow('bumenhuiqianid','bumenhuiqianidname','huiqiannode3')"><img src="images/yhglren.gif" /></a>
                                    </td> -->
                                  </tr> 
                              　　　　　　　　　　　<tr >
                                    <th width="20%" >签发人</th>
                                    <td width="65%" align="left">
                                      <input name="qianfaidname" id="qianfaidname" type="text" size="60" />
                                    </td>
                                     <td  width="15%" align="left"><h2>（必填）
                                     	<!-- <a href="javascript:qianfaren()"><img src="images/yhglren.gif" /></a> -->
                                     </h2></td>
                                  </tr>
                              
                              	<tr>
                                <th>选择文种</th>
                                <td width="65%" align="left">
                                	
	                                <select name="subtype" id="subtype" onchange="subtypechange()">
	                                	<option value="" >请选择文件种类</option>
	            					<%
	        						Iterator subtypeListIterator = subTypeList.iterator();
	        						while(subtypeListIterator.hasNext())
	        						{
	        						   SubTypeInfo subType = (SubTypeInfo)subtypeListIterator.next(); 		
			        					%>
			        						<option value="<%=subType.getId() %>" ><%=subType.getTypeName()%></option>
			        					<% 		
			        						}
			        					%>
				            		</select>
                                  <td width="15%"><h2>（必填）</h2></td>
                              </tr>  
                              <tr>
                                <th>选择文号</th>
                                <td width="65%" align="left"><input  type="text" size="8" name="haotype" id="haotype" value=""/><input  type="text" size="4" name="year" id="year" value="<%=(new Date()).getYear() +1900%>"/>年<input  type="text" size="4"  name="number" id="number" value=""/>号</td>
                                  <td width="15%"><h2>（必填）</h2></td>
                              </tr>
                              <tr>
                                <th>拟稿日期</th>
                                <td width="80%" align="left" colspan="2">
                                	<h2><input name="fawenDate" value=""  type="text" id="fawenDate" size="40" onblur="fawenDatecheck();"/>
                                  注意：日期格式必须为yyyy-mm-dd（必填）</h2></td>
                              </tr>
                              <tr>
                                <th>封发日期</th>
                                <td width="80%" align="left" colspan="2">
                                	<h2><input name="fengfadate" value=""  type="text" id="fengfadate" size="40" onblur="fengfadatecheck();"/>
                                  注意：日期格式必须为yyyy-mm-dd（必填）</h2></td>
                              </tr>
                              <tr style="display: none;">
                                <th>份数</th>
                                <td width="65%" align="left"><input name="fenshu" type="text" size="20" /></td>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <th>备注</th>
                                <td width="65%" align="left">
                                	<input name="beizhu" type="text" size="80" />
                                </td>
                                <td><a href="javascript:change(5)">添加</a></td>
                              </tr>
                              <tr>
                                    <th>是否封发</th>
                                    <td colspan="2" align="left">
                                    	<input type="radio" name="path"  value="1" checked="checked"/>封发<br/>
                                    </td>
                                  </tr>				
                             			</table>
                             			<table width="98%" height="100%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                              				<tr>
                               		 			<td>
                               		 				<a href="javascript:f_submit()"><img src="images/baocun.gif" /></a>&nbsp;<a href="javascript:history.go(-1)"><img src="images/qx.gif" /></a>
                                				</td>
                               				</tr>
                            			</table>
                    				</div>
                    			</td>
                  			</tr>
                  			<tr>
                    			<td><img src="images/bl13.gif" /></td>
                  			</tr>
                		</table>  
                	</td>
              	</tr>
          	</table>
        </div>
	</div>
	</div> 
	</div>
</div>
	  <input  type="hidden" name="docname" value="<%=rodomerstr+".doc"%>"/>
	  <input id="basePath" value="<%=basePath%>" type="hidden"/>
   	  <input id="zhusongid" value="" type="hidden" name="zhusongid"/>
   	  <input id="chaosongid" value="" type="hidden" name="chaosongid"/>
   	  <input id="nigaorenid" value="" type="hidden" name="nigaorenid"/>
   	  <input id="hegaorenid" value="" type="hidden" name="hegaorenid"/>
   	  <input id="huiqianid" value="" type="hidden" name="huiqianid"/>
   	  <input id="qianfaid" value="" type="hidden" name="qianfaid"/>
   	  <input id="bumenhuiqianid" value="" type="hidden" name="bumenhuiqianid"/> 
   	  <input id="state" value="<%=state %>" type="hidden" name="state"/>
   	  <input id="node" value="" type="hidden"/>
   	  <input id="id" value="" type="hidden" name="id"/>
</form>	
</body>  
</html>
